package com.example.demoweb.controller;

import com.example.demoweb.bean.Person;
import com.example.demoweb.bean.Pet;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Date 2021/6/21 14:37
 * @Created by wangle
 * @Description
 */
@Controller
public class Responsecontroller {

    @ResponseBody
    @GetMapping("/test/person")
    public Person responperson( ){
        Person person=new Person();
        person.setName("乐");
        person.setPassword("1223");
        return  person;

    }


}
